package edu.hrbu.trade01.api;

import edu.hrbu.trade01.entity.Menu;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 徐登宇
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MenuApi {

    private HomeInfo homeInfo = new HomeInfo();

    private LogoInfo logoInfo = new LogoInfo();

    private List<Menu> menuInfo;

    public static void main(String[] args) {
        MenuApi menuApi = new MenuApi();
        System.out.println(menuApi);
    }

}

@Data
@NoArgsConstructor
@AllArgsConstructor
class HomeInfo {
    private String title="首页";
    private String href="page/welcome-1.html?t=1";
}

@Data
@NoArgsConstructor
@AllArgsConstructor
class LogoInfo {
    private String title="中俄贸易";
    private String image="images/logo.png";
    private String href="";
}